﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace hnrzxt.Migrations
{
    public partial class addrc : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "Rccps",
                columns: table => new
                {
                    Id = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    Jbxxid = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    CpTool = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    CpType = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    DateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
                    CpResult = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    CpFile = table.Column<string>(type: "nvarchar(max)", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Rccps", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "Rcpds",
                columns: table => new
                {
                    Id = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    Jbxxid = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    DateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
                    PdName = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    PdResult = table.Column<string>(type: "nvarchar(max)", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Rcpds", x => x.Id);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "Rccps");

            migrationBuilder.DropTable(
                name: "Rcpds");
        }
    }
}
